import request from '@/utils/request'

// ······························· 【基础信息查询---start】 ····································
// 基础信息查询【玩家管理】-列表
export function getUser (params) {
  return request({
    url: '/user/getUserList',
    method: 'get',
    params:params
  })
}

// 新增账号
export function addAccount(data) {
  return request({
    url: '/user/addNewUser',
    method: 'post',
    data:data
  })
}

// 用户修改密码
export function userEditPassword(data) {
  return request({
    url: '/user/changeUserPassword',
    method: 'post',
    data:data
  })
}

// 用户验证码
export function userCode(data) {
  return request({
    url: '/user/getQuickLoginCode',
    method: 'post',
    data:data
  })
}

// 用户封禁解封
export function userBanned(data) {
  return request({
    url: '/user/ban',
    method: 'post',
    data:data
  })
}

// 用户白名单
export function userWhite(data) {
  return request({
    url: '/user/power',
    method: 'post',
    data:data
  })
}

// 用户登录记录
export function userLogin(params) {
  return request({
    url: '/user/loginReport',
    method: 'get',
    params:params
  })
}

// 修改玩家银行卡信息
export function playerBankCard(data) {
  return request({
    url: '/user/changeBankCard',
    method: 'post',
    data:data
  })
}

// 货币变动原因【卢比变动原因】
export function currencyReason(params) {
  return request({
    url: '/amountRecord/getReasonList',
    method: 'get',
    params:params
  })
}

// 货币变动记录【卢比变动记录】
export function currencyFluctuation(params) {
  return request({
    url: '/amountRecord/getList',
    method: 'get',
    params:params
  })
}

// 货币变动记录-导出
export function getCurrencyExport (params) {
  return request({
    url: '/export/getAmountChangeListExport',
    method: 'get',
    params:params
  })
}
// ······························· 【基础信息查询---end】 ····································




// ······························· 【用户游戏记录---start】 ····································
// 用户游戏记录-列表
export function getUserGame (params) {
  return request({
    url: '/gameRecord/getList',
    method: 'get',
    params:params
  })
}

// 用户游戏记录-统计
export function getUserGameStatistics (params) {
  return request({
    url: '/gameRecord/getStatisticsData',
    method: 'get',
    params:params
  })
}

// 用户游戏记录-详情
export function getUserGameDetails (params) {
  return request({
    url: '/gameRecord/getDetails',
    method: 'get',
    params:params
  })
}

// 用户活动领取记录
export function getActivityRecords (params) {
  return request({
    url: '/amountRecord/getListGroup',
    method: 'get',
    params:params
  })
}

// 每日游戏记录-列表
export function getDailyGame (params) {
  return request({
    url: '/gameRecord/getUserData',
    method: 'get',
    params:params
  })
}

// 每日游戏记录-汇总
export function getSumDailyGame (params) {
  return request({
    url: '/gameRecord/groupListSum',
    method: 'get',
    params:params
  })
}

// 用户游戏记录-导出
export function getUserGameExport (params) {
  return request({
    url: '/gameRecord/getExportData',
    method: 'get',
    params:params
  })
}
// ······························· 【用户游戏记录---end】 ····································




// ······························· 【资源申请---start】 ····································
// 资源审核-列表
export function getResource (params) {
  return request({
    url: '/resourcesReport/list',
    method: 'get',
    params:params
  })
}

// 资源审核-历史申请
export function getHistory (params) {
  return request({
    url: '/resourcesReport/list',
    method: 'get',
    params:params
  })
}

// 资源审核-我的申请
export function getApply (params) {
  return request({
    url: '/resourcesReport/getMyApplyList',
    method: 'get',
    params:params
  })
}

// 资源申请-申请
export function applyResource(data) {
  return request({
    url: '/resourcesReport/apply',
    method: 'post',
    data:data
  })
}

// 资源审核-审核
export function checkResource(data) {
  return request({
    url: '/resourcesReport/check',
    method: 'put',
    data:data
  })
}

// 资源申请-扣除
export function resourceDeduction(data) {
  return request({
    url: '/user/userDeduction',
    method: 'post',
    data:data
  })
}

// 资源申请-列表
export function getDeduction (params) {
  return request({
    url: '/user/userDeductionList',
    method: 'get',
    params:params
  })
}
// ······························· 【资源申请---end】 ····································





// ······························· 【拼多多---start】 ····································
// 拼多多-列表
export function getPinduoduoPlayer (params) {
  return request({
    url: '/turntableReport/getList',
    method: 'get',
    params:params
  })
}

// 拼多多-历史申请
export function setPinduoduoPlayer (data) {
  return request({
    url: '/turntableReport/setFreeCashHit',
    method: 'post',
    data:data
  })
}
// ······························· 【拼多多---end】 ····································